<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作业5</title>
</head>
<body>
<script>
    var sum=0;
    for (let i = 1; i < 6; i++) {
        if (i==4){
            break;
        }
        sum+=i;
    }
    console.log("sum="+sum);

    var sum1=0;
    for (let i = 1; i < 6; i++) {
        if (i==4){
            continue;
        }
        sum1+=i;
    }
    console.log("sum1="+sum1);
</script>
</body>
</html>